package com.anycl.design.behavioral.mediator.instance;

public class Main {

    public static void main(String[] args) {
        MediatorCompany mediatorCompany = new ConcreteMediatorCompany("蛋壳");
        ColleagueSeller seller = new ColleagueSeller(mediatorCompany);
        ColleagueBuyer buyer = new ColleagueBuyer(mediatorCompany);

        mediatorCompany.setBuyer(buyer);
        mediatorCompany.setSeller(seller);

        seller.send("卖家发布需求...");
        buyer.send("买家发布需求...");
    }
}
